const Writable = require('stream').Writable
const writable = new Writable({objectMode: true})

writable._write = (chunk, enc, next) => {
  console.log(typeof chunk)
  console.log(chunk)
  process.nextTick(next)
}

writable.write('Hello World!')
writable.write({ name: 'Node' })
writable.end(1024)
